<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{yhdkForm.bundleName}"/>
    <head>
        <title>#{text['yhdkDetail.title']}</title>
        <meta name="heading" content="#{text['yhdkDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="yhdkForm">

<h:form id="yhdkForm" onsubmit="return validateYhdkForm(this)">
<h:inputHidden value="#{yhdkForm.yhdk.id}" id="id"/>
<h:inputHidden value="#{yhdkForm.yhdk.version}" id="version"/>
<h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{yhdkForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty yhdkForm.yhdk.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{yhdkForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Yhdk')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
</h:panelGroup>

<h:panelGrid columns="6">
    <h:outputLabel styleClass="desc" for="dbdw" value="#{text['yhdk.dbdw']}"/>
    <t:message for="dbdw" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dbdw" value="#{yhdkForm.yhdk.dbdw}" required="false" maxlength="50">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="dbfs" value="#{text['yhdk.dbfs']}"/>
    <t:message for="dbfs" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dbfs" value="#{yhdkForm.yhdk.dbfs}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="dbw" value="#{text['yhdk.dbw']}"/>
    <t:message for="dbw" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dbw" value="#{yhdkForm.yhdk.dbw}" required="false" maxlength="100">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="fdbdw" value="#{text['yhdk.fdbdw']}"/>
    <t:message for="fdbdw" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="fdbdw" value="#{yhdkForm.yhdk.fdbdw}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="jbh" value="#{text['yhdk.jbh']}"/>
    <t:message for="jbh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jbh" value="#{yhdkForm.yhdk.jbh}" required="false" maxlength="100">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="je" value="#{text['yhdk.je']}"/>
    <t:message for="je" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="je" value="#{yhdkForm.yhdk.je}" required="false" maxlength="255">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="pgjz" value="#{text['yhdk.pgjz']}"/>
    <t:message for="pgjz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="pgjz" value="#{yhdkForm.yhdk.pgjz}" required="false" maxlength="255">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="qzrq" value="#{text['yhdk.qzrq']}"/>
    <t:message for="qzrq" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="qzrq" value="#{yhdkForm.yhdk.qzrq}" required="false" maxlength="40">
    </h:inputText>
    <!-- 
    <h:outputLabel styleClass="desc" for="id" value="#{text['yhdk.id']}"/>
        <t:message for="id" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="id" value="#{yhdkForm.yhdk.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['yhdk.id']}"/>
    </h:inputText>
   
    <h:outputLabel styleClass="desc" for="operation" value="#{text['yhdk.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{yhdkForm.yhdk.operation}" required="false" maxlength="20">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['yhdk.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{yhdkForm.yhdk.optdate}" required="false" maxlength="23">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="username" value="#{text['yhdk.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{yhdkForm.yhdk.username}" required="false" maxlength="50">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="xh" value="#{text['yhdk.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{yhdkForm.yhdk.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="zmjz" value="#{text['yhdk.zmjz']}"/>
    <t:message for="zmjz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zmjz" value="#{yhdkForm.yhdk.zmjz}" required="false" maxlength="255">
    </h:inputText>
     -->
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateYhdkForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('yhdkForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
